import request from '@/utils/request'

// 查询学生信息列表
export function listMst(query) {
  return request({
    url: '/system/student/list',
    method: 'get',
    params: query
  })
}

// 查询学生信息详细
export function getMst(id) {
  return request({
    url: '/system/student/' + id,
    method: 'get'
  })
}

// 新增学生信息
export function addMst(data) {
  return request({
    url: '/system/student',
    method: 'post',
    data: data
  })
}

// 修改学生信息
export function updateMst(data) {
  return request({
    url: '/system/student',
    method: 'put',
    data: data
  })
}

// 删除学生信息
export function delMst(id) {
  return request({
    url: '/system/student/' + id,
    method: 'delete'
  })
}


// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/system/student/importTemplate',
    method: 'get'
  })
}
// 导出学生信息
export function exportMst(query) {
  return request({
    url: '/system/student/export',
    method: 'get',
    params: query
  })
}
